package com.linkwings.httpconverter;

import org.codehaus.jackson.map.AnnotationIntrospector;
import org.codehaus.jackson.map.ObjectMapper;
import org.codehaus.jackson.xc.JaxbAnnotationIntrospector;

public class JaxbJasonObjectMapper extends ObjectMapper{

	public JaxbJasonObjectMapper(){
		super();
		AnnotationIntrospector introspector = new JaxbAnnotationIntrospector();
	    //this.getDeserializationConfig().withAnnotationIntrospector(introspector);//no use
	    //this.getSerializationConfig().withAnnotationIntrospector(introspector);//no use
		//this.getDeserializationConfig().setAnnotationIntrospector(introspector);//success
		//this.getSerializationConfig().setAnnotationIntrospector(introspector);//success
		this.getDeserializationConfig().insertAnnotationIntrospector(introspector);//success
		this.getSerializationConfig().insertAnnotationIntrospector(introspector);//success
	}
}
